package org.znxs.comfriend.models;

public class Friend {
    private String id;
    private String userId;
    private String friendId;
    private String status; // "pending", "accepted", "rejected"
    private long timestamp;
    
    // 构造函数、getter和setter


    public Friend() {
    }

    public Friend(String id, String userId, String friendId, String status, long timestamp) {
        this.id = id;
        this.userId = userId;
        this.friendId = friendId;
        this.status = status;
        this.timestamp = timestamp;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getFriendId() {
        return friendId;
    }

    public void setFriendId(String friendId) {
        this.friendId = friendId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
}